using CxRomos.Core.DataAccess;
using CxRomos.Core.DataAccess.Implementation;
using CxRomos.Core.Domain;
using NUnit.Framework;

namespace CxRomos.Core.Tests.Integration {
    [TestFixture]
    public class PermissionRepositoryTests : RepositoryBase {
        [Test]
        public void GetPermissionsByAccountId() {
            var permissionRepository = new PermissionRepository();
            var permissions = permissionRepository.GetPermissionsByAccountId(1);
        }

        [Test]
        public void ShouldReturnAllPermissions() {
            IPermissionRepository permissionRepository = new PermissionRepository();
            var permissions = permissionRepository.GetAllPermissions();

            Assert.That(permissions.Count > 0);
        }
    }
}